/**
 * author:Administrator
 * date:2016/2/24
 * desc:TODO
 */

'use strict';

var RepoImpl = require('../../../infrastructure/persist').CommentRepoImpl;

class CommentRepo {

  /**
   * return pojo
   * @param id
   * @returns {*}
   */
  static * find(id) {
    return yield RepoImpl.find(id);
  }

  /**
   * void
   * @param Comment
   * @param t transaction
   * @returns {*}
   */
  static * store(Comment, t) {
    yield RepoImpl.store(Comment, t);
  }
}

module.exports = CommentRepo;
